import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import './assets/css/my-mint.css';
import 'mint-ui/lib/style.css'
import './mock/mockServer'

// 注册全局组件
import {Loadmore} from 'mint-ui'
Vue.component(Loadmore.name, Loadmore)

// 修改每个路由对应的title
router.beforeEach((to, from, next) => {
  if (to.meta.title) {
    document.title = to.meta.title;
  }
  next();
})

new Vue({
  el: '#app',
  render: h => h(App),
  router,
  store
})
